# Contributor: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
# Maintainer: Marian Buschsieweke <marian.buschsieweke@ovgu.de>
pkgname=qspectrumanalyzer
pkgver=2.2.0
pkgrel=1
pkgdesc="Spectrum analyzer for multiple SDR platforms"
url="https://github.com/xmikos/qspectrumanalyzer"
arch="noarch !armhf" # no py3-qt on armhf
license="GPL-3.0-only"
depends="
	hackrf
	py3-qt.py
	py3-qtgraph
	py3-setuptools
	py3-soapy_power
	python3
	"
checkdepends="py3-pytest"
source="$pkgname-$pkgver.tar.gz::https://github.com/xmikos/qspectrumanalyzer/archive/v$pkgver.tar.gz"
options="!check" # Test seems windows only :-/

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="8aad19d4f02fac579a65279eb0a26bab18f9e1243a626419640b91eab488eb21c96b0a9c83e6cc0141760c887b2481b533d0a32432de0919e41904c5b279c627  qspectrumanalyzer-2.2.0.tar.gz"
